+ostree (2017.12-2) UNRELEASED; urgency=medium
+
+ * Disable gtk-doc if we are not going to build libostree-doc,
+ in particular for architecture-specific builds. Note that it remains
+ in Build-Depends (not Build-Depends-Indep) because it is also needed
+ for gtkdocize during dh_autoreconf.
+
+ -- Simon McVittie <smcv@debian.org> Mon, 16 Oct 2017 10:13:54 +0100
+
ostree (2017.12-1) unstable; urgency=medium
* New upstream release
# Some tests assert that we will see English strings
export LC_ALL=C.UTF-8
+binaries := $(shell dh_listpackages)
+
%:
dh $@ --with=gir
--with-systemdsystemunitdir=/lib/systemd/system \
$(NULL)
-ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+ifneq ($(filter libostree-doc,$(binaries)),)
configure_options += --enable-gtk-doc
-configure_options += --enable-man
else
configure_options += --disable-gtk-doc
+endif
+
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+configure_options += --enable-man
+else
configure_options += --disable-man
endif